//
//  ZYFileSplitter.m
//  DesignMode
//
//  Created by wangzhipan on 2024/9/26.
//

#import "ZYFileSplitter.h"

@implementation TxtSplitter
- (void)splitter
{
    NSLog(@"txt splitter...");
}
@end

@implementation BinarySplitter
- (void)splitter
{
    NSLog(@"Binary splitter...");
}
@end

@implementation VideoSplitter
- (void)splitter
{
    NSLog(@"Video splitter...");
}
@end


@implementation TxtSplitterFactory
- (id<ISplitter>)createSplitter
{
    return [[TxtSplitter alloc] init];
}
@end

@implementation BinarySplitterFactory
- (id<ISplitter>)createSplitter
{
    return [[BinarySplitter alloc] init];
}
@end

@implementation VideoSplitterFactory
- (id<ISplitter>)createSplitter
{
    return [[VideoSplitter alloc] init];
}
@end
